//
//  KABMallTitleView.h
//  kabu
//
//  Created by XiangDongMBP on 2017/3/24.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KABMallTitleView;
@protocol KABMallTitleViewDelegate <NSObject>
@optional
- (void)kABMallTitleView:(KABMallTitleView *)view textFieldChanged:(UITextField *)textField;
- (void)kABMallTitleView:(KABMallTitleView *)view searchBtnTapped:(UIButton *)btn;
@end

@interface KABMallTitleView : UIView

@property (strong, nonatomic) UIColor *bgColor;
@property (strong, nonatomic) UIColor *textColor;
@property (strong, nonatomic) UIColor *placeholderColor;
@property (strong, nonatomic) UIColor *textFieldTintColor;  //光标的颜色

@property (weak, nonatomic) IBOutlet UITextField *textField;
@property (weak, nonatomic) IBOutlet UIButton *searchBtn;
@property (weak, nonatomic) id<KABMallTitleViewDelegate>delegate;

@property (readonly, nonatomic) NSString *inputText;
- (void)setTextFieldPlaceholder:(NSString *)str;    //!< 设置placeHolder
- (void)setTextFieldText:(NSString *)str;           //!< 设置TextField的text

@end
